<?php
require_once("yammerbodyView.php");
require_once(CORE_DIR.'taskModel.php');

class updatetaskAction extends Action{

	function __construct(){
		$this->view = new yammerbodyView();
	}

	public function run($get, $post, $viewtype) {
		parent::run($get,$post,$viewtype);
		
		$tModel = new taskModel();		
		
		if (isset($get["tid"])){
			$taskId = $get["tid"];
			
			$task = $tModel->getTaskForYammerMessage($taskId);
			
			$this->view->setProperty("task", $task);
			$this->view->showUpdateTask();
		}			
	}
}
?>